import request from '@/utils/request'

// 查询培训报名列表
export function listStudentSignup(query) {
  return request({
    url: '/student/studentSignup/list',
    method: 'get',
    params: query
  })
}

// 查询培训报名详细
export function getStudentSignup(id) {
  return request({
    url: '/student/studentSignup/' + id,
    method: 'get'
  })
}

// 新增培训报名
export function addStudentSignup(data) {
  return request({
    url: '/student/studentSignup',
    method: 'post',
    data: data
  })
}

// 修改培训报名
export function updateStudentSignup(data) {
  return request({
    url: '/student/studentSignup',
    method: 'put',
    data: data
  })
}

// 删除培训报名
export function delStudentSignup(id) {
  return request({
    url: '/student/studentSignup/' + id,
    method: 'delete'
  })
}

// 导出培训报名
export function exportStudentSignup(query) {
  return request({
    url: '/student/studentSignup/export',
    method: 'get',
    params: query
  })
}


// 下载导入模板
export function importTemplate() {
  return request({
    url: '/student/studentSignup/importTemplate',
    method: 'get'
  })
}

// 审核培训报名
export function checkStudentSignup(data) {
  return request({
    url: '/student/studentSignup/check',
    method: 'post',
    data: data
  })
}
